package com.zzxx.photograph.dao;

import com.zzxx.photograph.domain.Img;

import java.util.List;
import java.util.Map;

public interface ImgDao {
    int findCountByIname(String condition);

    List<Img> findByIname(String condition, int start, int pageSize);

    int findCount();

    List<Img> findAll(int start, int pageSize);


    Img findImgByRid(int iid);

    Img findImgByIid(int iid);

    void addClick(int iid);

    String findSrcByIid(int iid);

    int findCountsByIname(Map<String, String[]> condition);

    List<Img> findByInames(Map<String, String[]> condition, int start, int pageSize);

    void addImg(Img img);

    int findCountsByAid(int aid);

    List<Img> findImgByAid(int aid, int start, int pageSize);

    Integer findMaxId();

    void updateImg(Img img);

    void deleteImg(Integer iid);
}
